# m=int(input())
m=1
# n=int(input())
n=10
count=0


def isSquare(i):
    return i**0.5 % 1 == 0


# x ^2 =y
# y=x^0.5

for i in range(m,n+1):
    # if isSquare(i)==1:
    if isSquare(i):
        count=count+1
print(count)
